import observeEntries from './observeEntries.js'
import observePaint from './observePaint.js'
import observeLCP from './observeLCP.js'
import observeCLS from './observeCLS.js'
import observeFID from './observeFID.js'
import observeXhrRequest from './observeXhrRequest.js'
import observeFetch from './observeFetch.js'
import observeFps from './observeFps.js'
import observerLoad from './observerLoad.js'
import observeFirstScreenPaint from './observeFirstScreenPaint.js'
import onVueRouter from './onVueRouter.js'
import {config} from '../config.js'

export default function performance() {
    observeEntries()
    observePaint()
    observeLCP()
    observeCLS()
    observeFID()
    observeXhrRequest()
    observeFetch()
    observeFps()
    observerLoad()
    observeFirstScreenPaint()

    if (config.vue?.Vue && config.vue?.router) {
        onVueRouter(config.vue.Vue, config.vue.router)
    }
}
